<!DOCTYPE html>
<script src="../../../resources/testharness.js"></script>
<script src="../../../resources/testharnessreport.js"></script>
<style>
  .a + .b { color: pink }
</style>
<script>
  test(() => {
    document.appendChild(document.createProcessingInstruction("a", "b"));
    document.documentElement.offsetTop;
    document.documentElement.className = "a";
    document.documentElement.remove();
  }, "Re-scheduling sibling invalidations on document should not cause a crash.");
</script>
